package com.qf.day05;

public class Cat {
    public Cat(){
        name="田东旭";
    }
    public Cat(String name){
        this.name=name;
    }
    public Cat(String name, String type, String color, int age,String sex,int mood,double weight){
        this.name=name;
        this.type=type;
        this.color=color;
        this.age=age;
        this.sex=sex;
        this.mood=mood;
        this.weight=weight;

    }
    String type;
    String name;
    String color;
    int age;
    String sex;
    int mood =100;
    double weight=120;

    public void eat(){
        mood+=10;
        weight+=10;
        System.out.println(name+"的性别是："+sex+"猫"+"颜色为："+color+"吃的非常开心"+"心情值为:"+mood+"体重为:"+weight);
    }
    public  void  sleep(){
        mood+=20;weight-=10;
        System.out.println(name+"的性别是："+sex+"猫"+"颜色为："+color+"睡的非常开心"+"心情值为:"+mood+"体重为:"+weight);

    }
}
